-- GENERATED SPELL FOR [Spark of Ionar] --


function spell0_28926(pUnit, Event) --@Arcing Burn,n/a--
pUnit:FullCastSpellOnTarget(52671,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28926', 10253, 1)
end

function spell1_28926(pUnit, Event) --@Arcing Burn,n/a--
pUnit:FullCastSpellOnTarget(59834,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28926', 10328, 1)
end

function Sorts_28926(pUnit, Event)
local choix_sorts_28926 = math.random(0, 1)
if choix_sorts_28926 == 0 then
pUnit:RegisterEvent('spell0_28926', 1, 1)
end
if choix_sorts_28926 == 1 then
pUnit:RegisterEvent('spell1_28926', 1, 1)
end
end

function mob28926_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28926', math.random(1500, 3000), 1)
end

function mob28926_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28926_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28926_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28926, 1, 'mob28926_Action')
RegisterUnitEvent(28926, 2, 'mob28926_Leave')
RegisterUnitEvent(28926, 3, 'mob28926_Kill')
RegisterUnitEvent(28926, 4, 'mob28926_Die')
